<%--

   Copyright 2020-2021 redragon-erp/赤龙ERP
   Author redragon/dongbin
   This file is part of redragon-erp/赤龙ERP.

     赤龙ERP官方声明：
   (1)赤龙ERP的知识产权归软件著作权人所有
   (2)未经著作权人授权，不得将赤龙ERP用于任何形式的商业用途
   (3)对侵权的组织或个人，著作权人将保留诉诸法律的权利

     赤龙ERP官网详见 <https://www.redragon-erp.com>
     赤龙ERP仓库详见 <https://gitee.com/redragon/redragon-erp> 
     如遇任何问题，请与著作权人联系
	
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div id="searchDiv" class="ibox " style="display: none;">
	<div class="ibox-title collapse-link" style="cursor: pointer;"
		title="展开/收起查询条件">

		<h5>查询条件</h5>
		<div class="ibox-tools"></div>

	</div>
	
	<form action="web/sysNotice/getSysNoticeList" method="get">
	<div class="ibox-content m-b-sm border-bottom">
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="noticeId">通知ID</label> 
					<input type="text" id="noticeId" name="noticeId" value="${param.noticeId}" class="form-control">
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="title">通知标题</label> 
					<input type="text" id="title" name="title" value="${param.title}" class="form-control">
				</div>
			</div>
		</div>
		<div class="row">	
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="noticeType">通知类型</label> 
					<select name="noticeType" id="noticeType" class="form-control">
						<option value="" selected="">请选择</option>
						<c:forEach items="${requestScope.noticeTypeMap}" var="noticeType">
                       		<option value="${noticeType.key}">${noticeType.value}</option>
                       	</c:forEach>
					</select>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="businessType">业务类型</label> 
					<select name="businessType" id="businessType" class="form-control">
						<option value="" selected="">请选择</option>
						<c:forEach items="${requestScope.businessTypeMap}" var="businessType">
                       		<option value="${businessType.key}">${businessType.value}</option>
                       	</c:forEach>
					</select>
				</div>
			</div>
		</div>
		<div class="row">	
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="publishFlag">发布标识</label> 
					<select name="publishFlag" id="publishFlag" class="form-control">
						<option value="" selected="">请选择</option>
						<option value="Y">已发布</option>
						<option value="N">未发布</option>
					</select>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="control-label" for="status">状态</label> 
					<select name="status" id="status" class="form-control">
						<option value="" selected="">请选择</option>
						<option value="Y">有效</option>
						<option value="N">无效</option>
					</select>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12 text-right">
				<div class="form-group">
					<button type="submit" class="btn btn-w-m btn-primary">查询</button>
				</div>
			</div>
		</div>
	</div>
	
	<%-- 隐藏字段 --%>
	<input type="hidden" name="page" value="1">
	</form>
</div>

<script>
$(document).ready(function(){
	//设置noticeType默认值
	if("${param.noticeType}"!=""){
		$("#noticeType").val("${param.noticeType}");
	}
	//设置businessType默认值
	if("${param.businessType}"!=""){
		$("#businessType").val("${param.businessType}");
	}
	//设置publishFlag默认值
	if("${param.publishFlag}"!=""){
		$("#publishFlag").val("${param.publishFlag}");
	}
	//设置状态默认值
	if("${param.status}"!=""){
		$("#status").val("${param.status}");
	}
});
</script>
